package com.ys.erp.entity.data.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author lwj
 * @date 2025/5/29
 */
    
@Data
@TableName(value = "t_member_level")
public class MemberLevel {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 等级值 1-100
     */
    @TableField(value = "level_value")
    private Integer levelValue;

    /**
     * 会员等级名称
     */
    @TableField(value = "level_name")
    private String levelName;

    /**
     * 会员状态：0停用，1启用
     */
    @TableField(value = "level_status")
    private Integer levelStatus;

    /**
     * 是否开启折扣，0否1是
     */
    @TableField(value = "is_open_discount")
    private Integer isOpenDiscount;

    /**
     * 会员折扣，万分单位
     */
    @TableField(value = "level_discount")
    private Integer levelDiscount;

    /**
     * 会员图标
     */
    @TableField(value = "level_pic")
    private String levelPic;

    /**
     * 是否默认新人等级
     */
    @TableField(value = "is_default")
    private Integer isDefault;

    @TableField(value = "version")
    @Version
    private Integer version;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "update_time", update = "now()")
    private LocalDateTime updateTime;
}